package com.company.instance;

/**
 * 饱汉模式
 */
public class InstanceTest2 {

    static InstanceTest2 instanceTest = new InstanceTest2();

    private InstanceTest2() {

    }

    public static InstanceTest2 getInstance() {
        return instanceTest;
    }

    @Override
    public String toString() {
        return "InstanceTest2{}";
    }
}
